using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
 
using GameLibrary;
 
namespace ArkanoidGame
{
   public partial class MainForm : Form
   {
       private ArkanoidGame m_bricksGame = null;
       private const int GAME_WIDTH = 800;
       private const int GAME_HEIGHT = 600;
 
       public MainForm()
       {
           InitializeComponent();
 
           m_bricksGame = new ArkanoidGame(GAME_WIDTH, GAME_HEIGHT);
           m_bricksGame.FramesPerSecond = 120;
           m_bricksGame.Dock = DockStyle.Fill;
           m_bricksGame.Font = new Font("Consolas", 10f);
 
           this.Size = GamePanel.CalculateWindowBounds(new Size(GAME_WIDTH, GAME_HEIGHT), this.FormBorderStyle);
 
           this.Controls.Add(m_bricksGame);
       }
   }
}